/**
 * 
 */
package moreHealthModel.Campus.FoodSources;


import moreHealthModel.Menu;
import moreHealthModel.Menu.MenuType;


/**
 * @author aloke
 *
 */
public class Restaurant extends FoodSources
	{
		//ATTRIBUTES ======================================
		
		//Time when the Student was present at the Restaurant.
		private int timeInstancex_=0;
		
		private Menu menuItemx_= null;
		
		//TODO: Add mechanism to check the time at Location 1<time Location 2
		//CONSTRUCTORS ======================================
		//PRE-CONDITION:
			//1. Latitude, longitude should not be negative
			//2. Time cannot be negative and decimal
		public Restaurant(int latitude, int longitude, String restaurantAddress, int time)
			{

				setLocationLatitude(latitude);
				setLocationLongitude(longitude);
				this.setFoodResourceAddress(restaurantAddress);
				setLocationTime(time);
				MenuInfo();
				
				if (latitude<=-1)
					{System.out.println("Latitude cannot be less than 0.");}
				else if (longitude<=-1)
					{System.out.println("Longitude cannot be less than 0.");}
				else if (time<=-1)
					{System.out.println("Time cannot be less than 0");}
				
			}

		//INTENT: gets the time when the Student was present at the Restaurant.
		//POST-CONDITION: 
			//1. Send the time when the Student was present in the Restaurant grid.
		public int getTimeInstance ()
			{return timeInstancex_;}
		
			
	//Provides the type of food the Student Ordered while in the Fast Food location.
	@Override
	public Menu MenuInfo()
		{
			menuItemx_= new Menu(MenuType.Vegetarian);
			return menuItemx_;
		}

	}
